{% extends 'business/devices_list.html' %}

{% block device_title %}{{ which }}列表{% endblock %}

{% block device_1 %}{{ which }}管理{% endblock %}

{% block device_2 %}{{ which }}管理{% endblock %}

{% block list %}
    <table id="memberTable" class="table table-bordered table-hover nowrap">
        <thead>
        <tr>
            <th>id</th>
            <th>设备型号</th>
            <th>配置容量(kWh)</th>
            <th>额定电压(V)</th>
            <th>下限电压(V)</th>
            <th>上限电压(V)</th>
            <th>充放功率上限(kW)</th>
            <th>充放功率下限(kW)</th>
            <th>储能占比上限</th>
            <th>储能占比下限</th>
            <th>充放效率</th>
            <th>单位容量价格(元/kWh)</th>
            <th>系统投资(元/kW)</th>
            <th>是否默认</th>
            <td><label>
                <input type="checkbox" id="select_all">
            </label></td>
        </tr>
        </thead>
        <tbody>
        {% for i in devices %}
            <tr>
                <td>{{ i.id }}</td>
                <td target="model_name">{{ i.model_name }}</td>
                <td target="capacity">{{ i.capacity }}</td>
                <td target="rv">{{ i.rv }}</td>
                <td target="uv">{{ i.uv }}</td>
                <td target="dv">{{ i.dv }}</td>
                <td target="u_cdp">{{ i.u_cdp }}</td>
                <td target="l_cdp">{{ i.l_cdp }}</td>
                <td target="u_scr">{{ i.u_scr }}</td>
                <td target="l_scr">{{ i.l_scr }}</td>
                <td target="effect">{{ i.effect }}</td>
                <td target="ppu">{{ i.ppu }}</td>
                <td target="sp">{{ i.sp }}</td>
                <td>{% if i.is_default %}
                    <i class="fa fa-check-circle"></i>
                {% else %}

                {% endif %}</td>
                <td><label>
                    <input id="cb{{ i.id }}" type="checkbox" class="cb">
                </label></td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}

{% block add_title %}新增{{ which }}{% endblock %}